/**
 * @Copyright ®2015 Sinosoft Co. Ltd. All rights reserved.
 * 项目名称 : 网站服务平台
 * 创建日期 : 2017-09-11
 * 修改历史 :
 * 1. [2017-09-11]创建文件 by chenxin
 */
package com.gavinwind.common.auth.web.facade;

import com.gavinwind.common.auth.config.ENUM_AUTH_EVENTTYPE;
import com.gavinwind.common.auth.config.ENUM_INSPAY_TENANT;
import com.gavinwind.common.auth.dto.TokeAccessDTO;
import com.gavinwind.common.auth.facade.TokenAuthFacadeService;
import com.gavinwind.inspay.base.BaseService;
import com.gavinwind.inspay.common.exception.system.SignErrException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 【token认证服务实现类】
 * @author chenxin
 * @date 2017-09-11 下午5:39 
 * @version V1.0
 */
@RestController
@RequestMapping("/token")
public class TokenAuthFacadeServiceImpl extends BaseService implements TokenAuthFacadeService  {

    @GetMapping("/test")
    public String test(){
        logger.info("test");
        return "1234667";
    }
    public String getAuthToken(ENUM_INSPAY_TENANT cTenant, ENUM_AUTH_EVENTTYPE cEventType, TokeAccessDTO cAccessInfo) {
        logger.info("test");
        return "1234667";
    }

    public void checkTokenAccess(ENUM_INSPAY_TENANT cTenant, ENUM_AUTH_EVENTTYPE cEventType, String cTokenMsg) throws SignErrException {

    }
}
